package com.zhouyu.config;

import com.zhouyu.service.Brand;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class BrandsConfig {
	@Bean
	@Primary
	public Brand valentino(){
		Brand brand = new Brand();
		brand.setName("Valentino");
		return brand;
	}

	@Bean
	public Brand lv(){
		Brand brand = new Brand();
		brand.setName("LV");
		return brand;
	}
}
